<!DOCTYPE html>
<html>
<head>
    <title>setInterval</title>
</head>

<body>

<script>
var n1 = 0
var t1 = setInterval(function(){
	n1++;
	console.log(n1);
}, 2000);

var n2= 100;
var t2 = setInterval(function(){
	n2++;
	console.log(n2);
}, 3000);
</script>




</body>
</html>